import Home from '../views/Home/Home'
import ShoppingCart from '../views/Center/ShoppingCart'
import Information from '../views/Center/Information'
import Score from '../views/Center/Score'
import PurchasedItems from '../views/Center/PurchasedItems'
import AnnouncementDetail from '../components/Home/Announcement/AnnouncementDetail'
import BookDetail from '../components/Book/BookDetail'
import Profile from '../components/Center/Profile'
import Account from '../components/Center/Account'
import Search from '../views/Search/Search'

export default[
  {
    path: '/',
    name: 'Home',
    component: Home
  },
  {
    path: '/Home',
    name: 'Home',
    component: Home
  },
  {
    path: '/ShoppingCart',
    name: 'ShoppingCart',
    component: ShoppingCart
  },
  {
    path: '/Information',
    name: 'Information',
    component: Information,
    children: [
      {
        path: 'Profile',
        name: 'Profile',
        component: Profile
      },
      {
        path: 'Account',
        name: 'Account',
        component: Account
      }
    ]
  },

  {
    path: '/Score',
    name: 'Score',
    component: Score
  },
  {
    path: '/PurchasedItems',
    name: 'PurchasedItems',
    component: PurchasedItems
  },
  {
    path: '/Announcement/:id',
    name: AnnouncementDetail,
    component: AnnouncementDetail
  },
  {
    path: '/BookDetail/:id',
    component: BookDetail
  },
  {
    path: '/Search',
    component: Search
  }]
